package com.nercel.dsj.gksales.exception;

/**
 *
 */
public enum ResponseCode {
    // 系统通用
    SUCCESS(200, "操作成功"),

    FORBIDDEN(403, "未授权访问"),

    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),

    OPERATE_FAIL(5000, "操作失败"),

    LOGIN_FAIL(5001, "登录失败"),

    INVALID_PASSWORD(5002, "修改密码失败，原始密码错误"),

    INVALID_USERNAME_OR_PASSWORD(5003, "用户名或密码错误"),

    DUPLICATE_USERNAME(5004, "用户名重复"),

    DUPLICATE_PHONE(5005, "手机号重复"),

    INVALID_SMS_CODE(5010, "验证码无效"),

    WRONG_SMS_CODE(5011, "验证码错误"),

    NOT_ENOUGH_AMOUNT(5060, "余额不足"),

    NO_SOCIAL_ACCOUNT(5100, "无效CODE"),

    NO_SOCIAL_ACCOUNT_ALREADY_BIND(5101, "已经绑定过"),

    NOT_AGENT(5102, "非代理商帐号"),

    WRONG_PHONE_NUMBER_FOR_VIP_CREATE(5103, "手机号码错误"),

    NOT_SUFFICIENT_AMOUNT(5104, "额度不足"),

    AGENT_NOT_EXIST(5105, "代理商不存在"),

    AGENT_EXIST(5106, "代理商已经存在"),

    AGENT_NOT_ACTIVATED(5107, "代理帐号未激活，等待上级审核"),

    CAN_NOT_DELETE_ACTIVATED_AGENT(5108, "不能删除已激活的代理商"),

    ARGUMENT_NOTVALID_EXCEPTION(5100, "参数错误"),

    NO_EXPECTATIONS_ARGUMENT(5101, "参数不完整"),

    INVALID_COUPON_CODE(6001, "无效的激活码"),

    ACTIVATED_COUPON_CODE(6002, "激活码已被使用过"),

    ALREADY_VIP(6003, "已经是VIP，不可再使用体验版激活码"),

    PRODUCT_NOT_FOUND(6004, "商品不存在"),

    NOT_FOUND(404, "目标资源不存在");

    private Integer code;

    private String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public final Integer getCode() {
        return this.code;
    }

    public final String getMessage() {
        return this.message;
    }

}
